package com.example.demo.user;


import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @Classname RabbitMQRecv
 * @Description TODO
 * @Date 2021/1/31 9:52
 * @Created by 新
 */
@Component
@RabbitListener(queues = "amqp_queue")
@Slf4j
public class RabbitMQRecv {
	@RabbitHandler
	public void receive(String userCode){
		log.info("{}注册成功，短信通知中。。。"+userCode);
	}
}
